<?php
/**
 * Author: xx.com
 * Date: 2015-09-09
 */

namespace Admin\Model;
use Think\Model;
class IntegralGoodsModel extends Model {
    protected $patchValidate = true; // 系统支持数据的批量验证功能，

    protected $_validate = array(
        array('goods_name','require','商品名称必须填写！',1 ,'',3),
        array('cat_id','0','商品分类必须填写。',1,'notequal',3),
        array('integral_count','/\d{1,10}(\.\d{1,2})?$/','重量格式不对。',2,'regex'),
     );   
    
    
}
